 /**
 * @(#) StartupCommand.as
 *
 * @date		2009. 02. 25.
 * @version		1.0
 * @author		Shin, Yunwoo
 * @description	Application 시작을 처리하는 Command
 *
 */
package com.skt.common_hr.holotreq_nos.controller
{
	import com.skt.common_hr.holotreq_nos.model.*;
	import com.skt.common_hr.holotreq_nos.view.HolOtReqMediator;
	
	import org.puremvc.as3.multicore.interfaces.ICommand;
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;

	public class StartupCommand extends SimpleCommand implements ICommand
	{

		override public function execute(note:INotification):void
		{
			var app:HolOtReqNos = (note.getBody() as HolOtReqNos);
			trace("execute startupCommand in Contract Module");

			facade.registerProxy(new DExpenseListProxy());
			facade.registerProxy(new HolOtReqProxy());
			facade.registerProxy(new DExpenseApprovalProxy());
			facade.registerProxy(new cProxy());
			facade.registerProxy(new TeamVacationProxy());
			facade.registerProxy(new VacationQuotaProxy());


			// MVC 모델중 View와 관련한 mediator들을 등록한다.
			facade.registerMediator(new HolOtReqMediator(app.view));
		}
	}
}